import React from 'react';
import ReactDOM from 'react-dom/client';
import './index.scss';
import App from './router';
import reportWebVitals from './reportWebVitals';
import { Provider } from 'react-redux';
import 'reset-css';
import 'react-flexible';
import store from './store'
//引入 持久化的插件
import { persistor } from './store'
import { PersistGate } from 'redux-persist/lib/integration/react';
const root = ReactDOM.createRoot(document.getElementById('root'));
root.render(
  <React.StrictMode>
    <Provider store={store} >
      <PersistGate loading={null} persistor={persistor}>
        <App />
      </PersistGate>
    </Provider>
  </React.StrictMode >
);


reportWebVitals();
